export default {
  methods: {
    orderQuery() {
      const queryData = {
        currentMonth: Number(this.queryForm.currentMonth),
        clientType: this.queryForm.clientType,
        orderType: this.queryForm.orderType,
        incomeType: this.queryForm.incomeType,
        sealBillType: this.queryForm.sealBillType,
        reviewStateFilter: this.queryForm.reviewStateFilter,
        dateStart: this.queryForm.createStart,
        dateEnd: this.queryForm.createEnd,
        timeType: this.queryForm.timeType,
        orderId: this.queryForm.orderId,
        clientName: this.queryForm.clientName,
        resourceName: this.queryForm.resourceName,
        orderPlatform: this.queryForm.orderPlatform,
        attributionMatrix: this.queryForm.attributionMatrix,
        market: this.queryForm.market,
        remark: this.queryForm.remark,
        theme: this.queryForm.theme,
        performanceMonth: this.queryForm.performanceMonth,
        accountBelong: this.queryForm.accountBelong,
        accountState: this.queryForm.accountState,
        orderOperator: this.queryForm.orderOperator,
        costWrite: this.queryForm.costWrite,
        costConfirm: this.queryForm.costConfirm,
        resourceType: this.queryForm.resourceType
      };
      this.queryData = queryData;
      this.list.items = [];
      this.fetchData(true);
    },
    isSearch() {
      this.$message.warning('搜索信息不能为空！');
    },
    isContent() {
      this.$message({
        message: '搜索信息不能为空！',
        type: 'warning'
      });
    },
    isKey() {
      this.$message({
        message: '请填写具体的搜索条件',
        type: 'warning'
      });
    }
  }
};
